package com.lbd.media.bean;

import com.lbd.base.bean.AbstractEntity;
import lombok.*;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * 常见问题分类
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@DynamicUpdate
@Entity
public class FaqType extends AbstractEntity {
    //编码
    private String code;
    //名称
    private String name;
    //排序
    private int orderBy;
    //   		//父id
//		private String parent_id ;
    @ManyToOne
    @JoinColumn(name = "parent_id")
    FaqType parent;
}
